﻿using System.Web.Mvc;
using FluentValidation.Attributes;
using IT.CMS.Web.Areas.Administration.Validators.Sites;
using IT.CMS.Web.Framework;
using IT.CMS.Web.Framework.Mvc;

namespace IT.CMS.Web.Areas.Administration.Models.Sites
{
    [Validator(typeof(SiteValidator))]
    public partial class SiteModel : BaseCmsEntityModel
    {
        [CmsResourceDisplayName("Admin.Configuration.Sites.Fields.Name")]
        [AllowHtml]
        public string Name { get; set; }

        [CmsResourceDisplayName("Admin.Configuration.Sites.Fields.Url")]
        [AllowHtml]
        public string Url { get; set; }

        [CmsResourceDisplayName("Admin.Configuration.Sites.Fields.SslEnabled")]
        public virtual bool SslEnabled { get; set; }

        [CmsResourceDisplayName("Admin.Configuration.Sites.Fields.SecureUrl")]
        [AllowHtml]
        public virtual string SecureUrl { get; set; }

        [CmsResourceDisplayName("Admin.Configuration.Sites.Fields.Hosts")]
        [AllowHtml]
        public string Hosts { get; set; }

        [CmsResourceDisplayName("Admin.Configuration.Sites.Fields.DisplayOrder")]
        public int DisplayOrder { get; set; }
    }
}